repo: Reject duplicate signatures when signing commit
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 12 Mar 2015 23:00:51 +0000 (19:00 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 18 Mar 2015 15:53:04 +0000 (11:53 -0400)
commit9033cf5da1588c0539ed0edf6f484144a6599af4
treef3a4b59dcfc79db7f8760c82e2cf18056c869ceb
parent8d127b9dcb663365d9e6025034cf3e6d54a27f3b
repo: Reject duplicate signatures when signing commit

Uses OstreeGpgVerifyResult to catch duplicate signatures.

If the commit has already been signed with the given GPG key ID, fail
with a G_IO_ERROR_EXISTS error code.
src/libostree/ostree-repo.c